/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Achie
 */
@Entity
@Table(name = "Role")
public class Role implements Serializable {
    @Id
    @GeneratedValue
    @Column(name = "id")
    private long role_id;
    @Column(name = "name")
    private String name;
    
    public Role() {
        
    }
    
    public Role(long role_id, String name) {
        this.setName(name);
        this.setRole_id(role_id);
    }
    
    public long getRole_id() {
        return role_id;
    }
    
    public void setRole_id(long role_id) {
        this.role_id = role_id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
  
    
}
